package page;

/**
 * Created by as on 2016/11/16.
 */
public class Array_Object {
    public static void main(String[] args){
        Book[] books = new Book[2];

        for (int i=0;i<books.length;i++)
        {
            books[i] = new Book();
        }

        books[0].name = "西游记";
        books[0].author = "何峰";
        books[0].price = 999.00;
        books[1].name = "西游记2大闹天宫";
        books[1].author = "何峰";
        books[1].price = 1999.00;

        for (Book book: books){
            book.show();
        }
    }
}
